package com.example.permission.annotation;

import com.example.permission.enums.PermissionType;

import java.lang.annotation.*;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ApiPermission {
    String name() default ""; // 接口中文描述，可选

    String code() default ""; // 可选，默认用 URI

    PermissionType[] permissions() default {PermissionType.READ}; // 默认是 READ 权限
}
